package com.gp.dwt.base;

/**
 * @author 小杜
 */

public enum ResultCode {
    SUCCESS(200,"success"),//成功
    USER_NAME_REPEAT(301,"用户名重复"),
    PHONE_REPEAT(302,"手机号已注册"),
    USER_NAME_EMPTY(303,"用户名为空"),
    PHONE_EMPTY(304,"手机号为空"),
    PASSWORD_EMPTY(305,"密码为空"),
    PHONE_IS_ILLEGAL(306,"手机号不合法"),
    CODE_IS_EMPTY(307,"验证码为空"),
    NO_VALIDATION_SENT(308,"验证码未发送"),
    VALIDATION_EXPIRED(309,"验证码已过期"),
    VALIDATION_WRONG(310,"验证码错误"),
    EMAIL_EMPTY(311,"邮箱为空"),
    EMAIL_REPEAT(312,"邮箱已注册"),
    EMAIL_IS_ILLEGAL(313,"验证码不合法"),
    USER_IS_NOT_EXIST(314,"用户名或密码错误");




    public int code;
    public String message;
    ResultCode(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
